<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	    <title><fmt:message key="flightDetail.heading"/></title>
	    <link rel="stylesheet" type="text/css" media="screen" href="${ctxPath}/css/form.css">
		<v:javascript formName="flight" staticJavascript="false"/>
	 	<script type="text/javascript" src="${ctxPath}/js/validator.jsp"></script>
  </head>
  <body>
	  	<div class="post">
			<div class="story">
				<h3><fmt:message key="flightDetail.heading"/></h3>
				<ul>功能介绍
					<li>[TODO]</li>
				</ul>
			</div>
		</div>
 		<div id="form-outer">
 			<div class="content">
 				<form:form method="post" id="flight" onsubmit="return validateFlight(this);" commandName="flight" action="editFlight.do">	
						<form:hidden path="id"/>					
			<p>
 				<label><fmt:message key="flight.orderId"/></label>
				<form:input id="orderId" path="orderId"/>
 				<form:errors path="orderId" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.code"/></label>
				<form:input id="code" path="code"/>
 				<form:errors path="code" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.cabin"/></label>
				<form:input id="cabin" path="cabin"/>
 				<form:errors path="cabin" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.flightName"/></label>
				<form:input id="flightName" path="flightName"/>
 				<form:errors path="flightName" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.dep"/></label>
				<form:input id="dep" path="dep"/>
 				<form:errors path="dep" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.arr"/></label>
				<form:input id="arr" path="arr"/>
 				<form:errors path="arr" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.depDay"/></label>
				<form:input id="depDay" path="depDay"/>
 				<form:errors path="depDay" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.depTime"/></label>
				<form:input id="depTime" path="depTime"/>
 				<form:errors path="depTime" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.arrDay"/></label>
				<form:input id="arrDay" path="arrDay"/>
 				<form:errors path="arrDay" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.arrTime"/></label>
				<form:input id="arrTime" path="arrTime"/>
 				<form:errors path="arrTime" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.mileage"/></label>
				<form:input id="mileage" path="mileage"/>
 				<form:errors path="mileage" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.flightTime"/></label>
				<form:input id="flightTime" path="flightTime"/>
 				<form:errors path="flightTime" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.ccabin"/></label>
				<form:input id="ccabin" path="ccabin"/>
 				<form:errors path="ccabin" cssClass="fieldError" />
			</p>
			<p>
 				<label><fmt:message key="flight.realCode"/></label>
				<form:input id="realCode" path="realCode"/>
 				<form:errors path="realCode" cssClass="fieldError" />
			</p>
 				 		<div class="last">
							<label>&nbsp;</label>
							<input name="submit" type="submit" onclick="bCancel=false" value=" 保存 " class="save"/>
							&nbsp;
							<input name="cancel" type="submit" onclick="bCancel=true" value=" 取消 " class="cancel"/>
						</div>
						
					</form:form>
 			
 			</div>
 		</div>
		
  </body>
</html>